package com.bs.sc.base.utils;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class PropertiesUtil {

	private static Properties properties = new Properties();
	private static InputStream in = PropertiesUtil.class.getClassLoader().getResourceAsStream("file.properties");

	public static String getPropertiesValue(String key) {
		try {
			properties.load(in);
			String v = properties.getProperty(key);
			return v;
		} catch (IOException e) {
			e.printStackTrace();
		}
		return "";
	}

}
